﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NCT.Framework;

namespace VISS.Web.Frontend.Modules.User.Profile {
    public partial class PasswordPage : System.Web.UI.Page {
        protected void Page_Load(object sender, EventArgs e) {
            UserContext userContext = LoginFactory.GetCurrentUser();

            string userKey = ConvertUtils.ToString(Request.QueryString["key"]);
            if (userContext == null) {
                Response.Clear();
                Response.Write("<script type='text/javascript'>");
                Response.Write("window.parent.ChangeStatusComplete('-1');window.close();");
                Response.Write("</script>");
                return;
            }
            idPassword.userContext = userContext;
        }
    }
}
